package com.stylefeng.guns.modular.flowerType.service;

import com.stylefeng.guns.common.persistence.model.FlowerType;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * flowerTypeService
 *
 * @author fengshuonan
 * @Date 2019-07-11 17:38:30
 */
public interface IFlowerTypeService {

    /**
     * 花卉类型列表
     */
    List<Map<String, Object>> showFlowerTypeTable(@Param("condition") String condition);

    /**
     * 根据id查询类型信息
     * @param fid
     * @return
     */
    FlowerType selectFlowerTypeById(Integer fid);

    /**
     * 修改类型信息
     */
    int updateFlowerType(FlowerType flowerType);

    /**
     * 删除类型信息
     */
    int delFlowerType(Integer fid);

}
